<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>

<meta name="generator" content="PHPDoctor 2RC2 (http://phpdoctor.sourceforge.net/)">
<meta name="when" content="Tue, 09 Dec 2008 09:11:43 +0000">

<link rel="stylesheet" type="text/css" href="../stylesheet.css">
<link rel="start" href="../overview-summary.html">

<title>QueryProfile (Moriarty)</title>

</head>
<body id="definition" onload="parent.document.title=document.title;">

<div class="header">
<h1>Moriarty</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="../moriarty/package-summary.html">Package</a></li>
<li class="active">Class</li>
<li><a href="../moriarty/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../moriarty/queryprofile.html" target="_top">No frames</a>
</div>
<div class="small_links">
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
</div>
<hr>

<div class="qualifiedName">Moriarty.QueryProfile</div>

<h1>Class QueryProfile</h1>

<pre class="tree"><a href="../moriarty/simplegraph.html">SimpleGraph</a><br>  |<br>  +--<a href="../moriarty/networkresource.html">NetworkResource</a><br>       |<br>       +--<strong>QueryProfile</strong><br /></pre>

<hr>

<p class="signature">public  class <strong>QueryProfile</strong><br>extends <a href="../moriarty/networkresource.html">NetworkResource</a>

</p>

<div class="comment" id="overview_description"><p>
Represents a store's query profile.
/</p></div>

<hr>

<table id="summary_constr">
<tr><th colspan="2">Constructor Summary</th></tr>
<tr>
<td class="description"><p class="name"><a href="#QueryProfile()">QueryProfile</a>(string uri, <a href="../moriarty/credentials.html">Credentials</a> credentials)</p><p class="description">
Create a new instance of this class</p></td>
</tr>
</table>

<table id="summary_method">
<tr><th colspan="2">Method Summary</th></tr>
<tr>
<td class="type"> string</td>
<td class="description"><p class="name"><a href="#add_field_weight()">add_field_weight</a>(mixed name, mixed weight)</p><p class="description">
Adds the field and weight to the query profile
</p></td>
</tr>
<tr>
<td class="type"> <a href="../moriarty/queryprofile.html">QueryProfile</a></td>
<td class="description"><p class="name"><a href="#copy_to()">copy_to</a>(mixed new_uri)</p><p class="description">
Copies the field weights and other properties into new query profile.</p></td>
</tr>
<tr>
<td class="type"> nothing</td>
<td class="description"><p class="name"><a href="#remove_field_weight()">remove_field_weight</a>(mixed name)</p><p class="description">
Removes the weight for the named field
</p></td>
</tr>
</table>

<table class="inherit">
<tr><th colspan="2">Methods inherited from Moriarty.NetworkResource</th></tr>
<tr><td><a href="../moriarty/networkresource.html#delete_from_network()">delete_from_network</a>, <a href="../moriarty/networkresource.html#get_comment()">get_comment</a>, <a href="../moriarty/networkresource.html#get_from_network()">get_from_network</a>, <a href="../moriarty/networkresource.html#get_label()">get_label</a>, <a href="../moriarty/networkresource.html#put_to_network()">put_to_network</a>, <a href="../moriarty/networkresource.html#set_comment()">set_comment</a>, <a href="../moriarty/networkresource.html#set_label()">set_label</a></td></tr></table>

<table class="inherit">
<tr><th colspan="2">Methods inherited from Moriarty.SimpleGraph</th></tr>
<tr><td><a href="../moriarty/simplegraph.html#add_graph()">add_graph</a>, <a href="../moriarty/simplegraph.html#add_literal_triple()">add_literal_triple</a>, <a href="../moriarty/simplegraph.html#add_rdfxml()">add_rdfxml</a>, <a href="../moriarty/simplegraph.html#add_resource_triple()">add_resource_triple</a>, <a href="../moriarty/simplegraph.html#add_turtle()">add_turtle</a>, <a href="../moriarty/simplegraph.html#from_json()">from_json</a>, <a href="../moriarty/simplegraph.html#from_rdfxml()">from_rdfxml</a>, <a href="../moriarty/simplegraph.html#from_turtle()">from_turtle</a>, <a href="../moriarty/simplegraph.html#get_first_literal()">get_first_literal</a>, <a href="../moriarty/simplegraph.html#get_first_resource()">get_first_resource</a>, <a href="../moriarty/simplegraph.html#get_index()">get_index</a>, <a href="../moriarty/simplegraph.html#get_literal_triple_values()">get_literal_triple_values</a>, <a href="../moriarty/simplegraph.html#get_resource_triple_values()">get_resource_triple_values</a>, <a href="../moriarty/simplegraph.html#get_subject_property_values()">get_subject_property_values</a>, <a href="../moriarty/simplegraph.html#get_triples()">get_triples</a>, <a href="../moriarty/simplegraph.html#has_literal_triple()">has_literal_triple</a>, <a href="../moriarty/simplegraph.html#has_resource_triple()">has_resource_triple</a>, <a href="../moriarty/simplegraph.html#is_empty()">is_empty</a>, <a href="../moriarty/simplegraph.html#remove_all_triples()">remove_all_triples</a>, <a href="../moriarty/simplegraph.html#remove_property_values()">remove_property_values</a>, <a href="../moriarty/simplegraph.html#remove_resource_triple()">remove_resource_triple</a>, <a href="../moriarty/simplegraph.html#remove_triples_about()">remove_triples_about</a>, <a href="../moriarty/simplegraph.html#set_namespace_mapping()">set_namespace_mapping</a>, <a href="../moriarty/simplegraph.html#subject_has_property()">subject_has_property</a>, <a href="../moriarty/simplegraph.html#to_json()">to_json</a>, <a href="../moriarty/simplegraph.html#to_ntriples()">to_ntriples</a>, <a href="../moriarty/simplegraph.html#to_rdfxml()">to_rdfxml</a>, <a href="../moriarty/simplegraph.html#to_turtle()">to_turtle</a></td></tr></table>

<h2 id="detail_constr">Constructor Detail</h2>
<h3 id="QueryProfile()">QueryProfile</h3>
<code class="signature">public <strong>QueryProfile</strong>(string uri, <a href="../moriarty/credentials.html">Credentials</a> credentials)</code>
<div class="details">
<p>
Create a new instance of this class</p><dl>
<dt>Parameters:</dt>
<dd>uri - URI of the query profile</dd>
<dd>credentials - the credentials to use for authenticated requests (optional)</dd>
</dl>
</div>

<hr>

<h2 id="detail_method">Method Detail</h2>
<h3 id="add_field_weight()">add_field_weight</h3>
<code class="signature">public  string <strong>add_field_weight</strong>(mixed name, mixed weight)</code>
<div class="details">
<p>
Adds the field and weight to the query profile
</p><dl>
<dt>Returns:</dt>
<dd>URI of the added field weight</dd>
</dl>
</div>

<hr>

<h3 id="copy_to()">copy_to</h3>
<code class="signature">public  <a href="../moriarty/queryprofile.html">QueryProfile</a> <strong>copy_to</strong>(mixed new_uri)</code>
<div class="details">
<p>
Copies the field weights and other properties into new query profile.
Any URIs that are prefixed by the source query profile URI will be converted to
be prefixed with this query profile's URI

For example
  http://example.org/source/queryprofile/1#name
Would become
  http://example.org/destination/queryprofile/1#name
</p></div>

<hr>

<h3 id="remove_field_weight()">remove_field_weight</h3>
<code class="signature">public  nothing <strong>remove_field_weight</strong>(mixed name)</code>
<div class="details">
<p>
Removes the weight for the named field
</p><dl>
<dt>Author:</dt>
<dd>Ian Davis</dd>
</dl>
</div>

<hr>

<div class="header">
<h1>Moriarty</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li><a href="../moriarty/package-summary.html">Package</a></li>
<li class="active">Class</li>
<li><a href="../moriarty/package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../moriarty/queryprofile.html" target="_top">No frames</a>
</div>
<div class="small_links">
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
</div>
<hr>

<p id="footer">This document was generated by <a href="http://phpdoctor.sourceforge.net/">PHPDoctor: The PHP Documentation Creator</a></p>

</body>

</html>